Start:
   robots 2 = Main if
   45 shield' store
   x 20 < y 20 < and ULMain if
   x 20 < y 280 > and DLMain if
   x 280 > y 280 > and DRMain if
   x 280 > y 20 < and URMain if
   y 150 > y 280 < and StartDown if
   x 150 > x 280 < and StartRight if
   y 150 < y 20 > and StartUp if
   x 150 < x 20 > and StartLeft if
   1 w' store
Wait:
   StopY top' setint
   StopY bottom' setint
   StopX right' setint
   StopX left' setint
   INTON
   x 20 < y 20 < and ULMain if
   x 20 < y 280 > and DLMain if
   x 280 > y 280 > and DRMain if
   x 280 > y 20 < and URMain if
   Wait jump
StartUp:
   1 u' store
   -8 speedy' store
   return
StartDown:
   1 d' store
   8 speedy' store
   return
StartRight:
   1 r' store
   8 speedx' store
   return
StartLeft:
   1 l' store
   -8 speedx' store
   return
StopX:
   0 speedx' store
   a WhichMain if
   1 b' store
   RTI
StopY:
   0 speedy' store
   b WhichMain if
   1 a' store
   RTI
WhichMain:
   d l and DLMain if
   d r and DRMain if
   u r and URMain if
ULMain:
   DROPALL
   FLUSHINT
   robots 2 = Main if
   0 speedy' store
   1 w' store
   Kill range' setint
   ULDodge radar' setint
   20 radar' setparam
   INTON
   35 shield' store
    85 aim' store
    90 aim' store
    95 aim' store
    100 aim' store
    105 aim' store
    110 aim' store
    115 aim' store
    120 aim' store
    125 aim' store
    130 aim' store
    135 aim' store
    140 aim' store
    145 aim' store
    150 aim' store
    155 aim' store
    160 aim' store
    165 aim' store
    170 aim' store
    175 aim' store
    180 aim' store
    185 aim' store
   ULMain jump
URMain:
   DROPALL
   FLUSHINT
   robots 2 = Main if
   0 speedx' store
   1 w' store
   Kill range' setint
   URDodge radar' setint
   20 radar' setparam
   INTON
   35 shield' store
    175 aim' store
    180 aim' store
    185 aim' store
    190 aim' store
    195 aim' store
    200 aim' store
    205 aim' store
    210 aim' store
    215 aim' store
    220 aim' store
    225 aim' store
    230 aim' store
    235 aim' store
    240 aim' store
    245 aim' store
    250 aim' store
    255 aim' store
    260 aim' store
    265 aim' store
    270 aim' store
    275 aim' store
   URMain jump
DLMain:
   DROPALL
   FLUSHINT
   robots 2 = Main if
   0 speedx' store
   1 w' store
   Kill range' setint
   DLDodge radar' setint
   20 radar' setparam
   INTON
   35 shield' store
    355 aim' store
    0 aim' store
    5 aim' store
    10 aim' store
    15 aim' store
    20 aim' store
    25 aim' store
    30 aim' store
    35 aim' store
    40 aim' store
    45 aim' store
    50 aim' store
    55 aim' store
    60 aim' store
    65 aim' store
    70 aim' store
    75 aim' store
    80 aim' store
    85 aim' store
    90 aim' store
    95 aim' store
   DLMain jump
DRMain:
   FLUSHINT
   DROPALL
   0 speedy' store
   robots 2 = Main if
   1 w' store
   Kill range' setint
   DRDodge radar' setint
   20 radar' setparam
   INTON
   35 shield' store
    265 aim' store
    270 aim' store
    275 aim' store
    280 aim' store
    285 aim' store
    290 aim' store
    295 aim' store
    300 aim' store
    305 aim' store
    310 aim' store 
    315 aim' store
    320 aim' store
    325 aim' store
    330 aim' store
    335 aim' store
    340 aim' store
    345 aim' store
    350 aim' store
    355 aim' store
    0 aim' store
    5 aim' store
   DRMain jump
Kill:
   doppler DopKill NoDopKill ife
   range dup 61 < and CloseRangeKill if
   RTI
DopKill:
   range dup 61 < and CloseRangeKill if
   doppler -20 arctan aim + aim' sto
   3 fire' store
   return
NoDopKill:
   range dup 61 < and CloseRangeKill if
   8 fire' store
   return
CloseRangeKill:
   5 hellbore' store
   probe 2 / missile' store
   sync
   return
ULDodge:
   INTOFF
   DROPALL
   30 shield' store
   8 speedx' store
   x 280 > StopULDodge if
   90 aim' store
   range w and PlowDown if
   135 aim' store
   range CircleThing if
   180 aim' store
   range CircleThing if   
   ULDodge jump
StopULDodge:
   0 speedx' store
   URMain jump
URDodge:
   INTOFF   
   DROPALL
   30 shield' store
   8 speedy' store
   y 280 > StopURDodge if
   180 aim' store
   range w and PlowDown if
   225 aim' store
   range CircleThing if
   270 aim' store
   range CircleThing if
   URDodge jump
StopURDodge:
   0 speedy' store
   DRMain jump
DLDodge:
   INTOFF
   DROPALL
   30 shield' store
   -8 speedy' store
   y 20 < StopDLDodge if
   0 aim' store
   range w and PlowDown if
   45 aim' store
   range CircleThing if
   90 aim' store
   range CircleThing if
   DLDodge jump
StopDLDodge:
   0 speedy' store
   ULMain jump
DRDodge:
   INTOFF
   DROPALL
   30 shield' store
   -8 speedx' store
   x 20 < StopDRDodge if
   270 aim' store
   range w and PlowDown if
   315 aim' store
   range CircleThing if
   0 aim' store
   range CircleThing if
   DRDodge jump
StopDRDodge:
   0 speedx' store
   DLMain jump
PlowDown:
   speedy UpSpeedY UpSpeedX ife
   25 shield' store
   5 hellbore' store
   probe 2 / missile' store
   0 w' store
   return
UpSpeedY:
   5 speedy' store
   return
UpSpeedX:
   5 speedx' store
   return
CircleThing:
   ULMain top' setint
   DRMain bottom' setint
   DLMain left' setint
   URMain right' setint
   INTON
   5 fire' store
   doppler aim + aim' store
   3 fire' store
   10 aim + aim' store
   sync
   3 fire' store
   10 aim + aim' store
   sync
   3 fire' store
   sync
   10 aim + aim' store
   sync
   3 fire' store
   10 aim + aim' store
   sync
   3 fire' store
   return
Main:
   Whump range' setint
   INTON
    25 shield' store
    0 aim' sto 40 aim' sto 80 aim' sto
    120 aim' sto 160 aim' sto 200 aim' sto
    240 aim' sto 280 aim' sto 320 aim' sto
    20 aim' sto 60 aim' sto 100 aim' sto
    140 aim' sto 180 aim' sto 220 aim' sto
    260 aim' sto 300 aim' sto 340 aim' sto
    10 aim' sto 50 aim' sto 90 aim' sto
    130 aim' sto 170 aim' sto 210 aim' sto
    250 aim' sto 290 aim' sto 330 aim' sto
    30 aim' sto 70 aim' sto 110 aim' sto
    150 aim' sto 190 aim' sto 230 aim' sto
    270 aim' sto 310 aim' sto 350 aim' sto
    5 aim' sto 45 aim' sto 85 aim' sto
    125 aim' sto 165 aim' sto 205 aim' sto
    245 aim' sto 285 aim' sto 325 aim' sto
    25 aim' sto 65 aim' sto 105 aim' sto
    145 aim' sto 185 aim' sto 225 aim' sto
    265 aim' sto 305 aim' sto 345 aim' sto
    15 aim' sto 55 aim' sto 95 aim' sto
    135 aim' sto 175 aim' sto 215 aim' sto
    255 aim' sto 295 aim' sto 335 aim' sto
    35 aim' sto 75 aim' sto 115 aim' sto
    155 aim' sto 195 aim' sto 235 aim' sto
    275 aim' sto 315 aim' sto 355 aim' sto
    2 aim' sto 42 aim' sto 82 aim' sto
    122 aim' sto 162 aim' sto 202 aim' sto
    242 aim' sto 282 aim' sto 322 aim' sto
    22 aim' sto 62 aim' sto 102 aim' sto
    142 aim' sto 182 aim' sto 222 aim' sto
    262 aim' sto 302 aim' sto 342 aim' sto
    12 aim' sto 52 aim' sto 92 aim' sto
    132 aim' sto 172 aim' sto 212 aim' sto
    252 aim' sto 292 aim' sto 332 aim' sto
    32 aim' sto 72 aim' sto 112 aim' sto
    152 aim' sto 192 aim' sto 232 aim' sto
    272 aim' sto 312 aim' sto 352 aim' sto
    7 aim' sto 47 aim' sto 87 aim' sto
    127 aim' sto 167 aim' sto 207 aim' sto
    247 aim' sto 287 aim' sto 327 aim' sto
    27 aim' sto 67 aim' sto 107 aim' sto
    147 aim' sto 187 aim' sto 227 aim' sto
    267 aim' sto 307 aim' sto 347 aim' sto
    17 aim' sto 57 aim' sto 97 aim' sto
    137 aim' sto 177 aim' sto 217 aim' sto
    257 aim' sto 297 aim' sto 337 aim' sto
    37 aim' sto 77 aim' sto 117 aim' sto
    157 aim' sto 197 aim' sto 237 aim' sto
    277 aim' sto 317 aim' sto 357 aim' sto
   Main jump
Whump:
   DROPALL
   energy 8 < Main if
   range not Find if
   aim dup 7 sin speedx' sto -7 cos speedy' sto
   range dup 61 < doppler not and and Bang if
   range not Find if
   doppler DopStun if
   8 stunner' store
Cont2:   
   sync
   sync
   Whump jump
Find:
   Found range' setint
   INTON
   9 look' sto -9 look' sto
   18 look' sto -18 look' sto
   27 look' sto -27 look' sto
   36 look' sto -36 look' sto
   45 look' sto -45 look' sto
   54 look' sto -54 look' sto
   63 look' sto -63 look' sto
   72 look' sto -72 look' sto
   81 look' sto -81 look' sto
   90 look' sto -90 look' sto
   3 look' sto -3 look' sto
   6 look' sto -6 look' sto
   12 look' sto -12 look' sto
   15 look' sto -15 look' sto
   21 look' sto -21 look' sto
   24 look' sto -24 look' sto
   30 look' sto -30 look' sto
   0 look' store 
   Main jump
Found:
   look aim + aim' store
   0 look' store
   Whump jump
DopStun:
   aim doppler -20 arctan aim + aim' sto
   8 stunner' store
   aim' store
   Cont2 jump
Bang:
   sync
   range not Find if
   0 shield' store
   0 speedx' store
   0 speedy' store
   40 stunner' store
   5 hellbore' store
   probe 2 / missile' store
   snd5
   sync
   Main jump